//
// Copyright (c) Microsoft Corporation.  All rights reserved.
//
//
// Use of this source code is subject to the terms of the Microsoft end-user
// license agreement (EULA) under which you licensed this SOFTWARE PRODUCT.
// If you did not accept the terms of the EULA, you are not authorized to use
// this source code. For a copy of the EULA, please see the LICENSE.RTF on your
// install media.
//

#ifndef __KEYS_H_
#define __KEYS_H_

// Key bit definition
#define KEY_NONE            0x00000000
#define KEY_T0              0x00000001
#define KEY_T1              0x00000002
#define KEY_T2              0x00000004
#define KEY_T3              0x00000008
#define KEY_T4              0x00000010
#define KEY_T5              0x00000020
#define KEY_T6              0x00000040
#define KEY_T7              0x00000080
#define KEY_T8              0x00000100
#define KEY_T9              0x00000200
#define KEY_TSTAR           0x00000400
#define KEY_TPOUND          0x00000800
#define KEY_TTALK           0x00001000
#define KEY_TEND            0x00002000
#define KEY_TSOFT1          0x00004000
#define KEY_TSOFT2          0x00008000
#define KEY_THOME           0x00010000
#define KEY_TBACK           0x00020000
#define KEY_TUP             0x00040000
#define KEY_TDOWN           0x00080000
#define KEY_TLEFT           0x00100000
#define KEY_TRIGHT          0x00200000
#define KEY_TVOLUMEUP       0x00400000
#define KEY_TVOLUMEDOWN     0x00800000
#define KEY_TACTION         0x01000000

#define KEY_TAPP4           0x02000000
#define KEY_TRECORD         0x04000000
#define KEY_TPOWER          0x08000000

// Returns a bit mask of the keys that are currently down
DWORD ReadKeyPad();
BOOL IsChordKeyPressed(DWORD, DWORD);
void InitKeypad();
#endif

